package com.ruoyi.tcod.service;

import com.ruoyi.tcod.domain.TcImgOrder;
import com.ruoyi.tcod.domain.bo.TcImgOrderApproveBo;
import com.ruoyi.tcod.domain.vo.TcImgOrderVo;
import com.ruoyi.tcod.domain.bo.TcImgOrderBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 单子Service接口
 *
 * @author ruoyi
 * @date 2024-10-20
 */
public interface ITcImgOrderService {

    /**
     * 查询单子
     */
    TcImgOrderVo queryById(Long id);

    /**
     * 查询单子列表
     */
    TableDataInfo<TcImgOrderVo> queryPageList(TcImgOrderBo bo, PageQuery pageQuery);

    /**
     * 查询单子列表
     */
    List<TcImgOrderVo> queryList(TcImgOrderBo bo);

    /**
     * 新增单子
     */
    Boolean insertByBo(TcImgOrderBo bo);

    /**
     * 修改单子
     */
    Boolean updateByBo(TcImgOrderBo bo);

    /**
     * 校验并批量删除单子信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    void approve(TcImgOrderApproveBo bo);
}
